import prompt from '@system.prompt';
export default {
    data: {
        canvasImgList: [
            'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fs2.best-wallpaper.net%2Fwallpaper%2F1920x1080%2F1504%2FDogs-Australian-shepherds-friends_1920x1080.jpg&refer=http%3A%2F%2Fs2.best-wallpaper.net&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1632904564&t=855e51cefc86ad01bf8e1bec784d457a',
            'https://img2.baidu.com/it/u=3499265478,169384316&fm=26&fmt=auto&gp=0.jpg',
            'https://img1.baidu.com/it/u=2041889379,1298538997&fm=26&fmt=auto&gp=0.jpg',
            'http://t14.baidu.com/it/u=3089809482,1016132751&fm=224&app=112&f=JPEG?w=500&h=281&s=2D324F951061F8E74E8C596703007010'
        ],
    },
//    验证成功的回调
    verificationSuccess() {
        prompt.showToast({
            message: '验证成功',
            duration: 2000,
        });
    },
//    验证失败的回调
    verificationError() {
        prompt.showToast({
            message: '验证失败',
            duration: 2000,
        });
    },
//    类型4验证码的验证事件
    type4ButtonClick(index) {
        this.$child('verification'+index).verification();
    }
}
